<template>
    <div class="left">
        <p>我是左{{a}}</p>
        <button @click="spread">发送</button>
    </div>

</template>

<script>
import bus from "@/components/EventBus"
export default {
data(){
    return{
        a:666
    }
},
methods:{
    spread(){
        bus.$emit('receive',this.a)
    }
}
}
</script>

<style>

</style>